# 自定义工具包的测试
# import 方式导入
# import my_utils.str_util
# import my_utils.file_util
# print(my_utils.str_util.str_reverse("abcdefg"))
# print(my_utils.str_util.substr("abcdefg",2,4))
# print(my_utils.file_util.print_file_info("abc.txt"))
# print(my_utils.file_util.append_to_file("abc.txt","123456789"))

# from 方式导入
from my_utils.str_util import str_reverse
from my_utils.str_util import substr
from my_utils.file_util import print_file_info
from my_utils.file_util import append_to_file
print(str_reverse("abcdefg"))
print(substr("abcdefg",2,4))
print(print_file_info("abc.txt"))
print(append_to_file("abc.txt","123456789"))